﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileTest1.JavaFileOperator
{
    public enum CodeType
    {
        Package,
        Import,
        ClassBegin,
        ClassEnd,
        Attribute,
        MethodBegin,
        MethodEnd,
        AttributeNote,
        MethodNote

    }
    public enum KeyWord
    {
        Abstract,
        Boolean,
        Break,
        Byte,
        Byvalue,
        Case,
        Catch,
        Char,
        Class,
        Const,
        Continue,
        Default,
        Do,
        Double,
        Else,
        Extends,
        False,
        Final,
        Finally,
        Float,
        For,
        Goto,
        If,
        Implements,
        Import,
        Instaceof,
        Int,
        Interface,
        Long,
        Native,
        New,
        Null,
        Package,
        Private,
        Protected,
        Public,
        Return,
        Short,
        Static,
        Super,
        Switch,
        Synchronized,
        This,
        Threadsafe,
        Throw,
        Throws,
        Transient,
        True,
        Try,
        Void,
        Volatile,
        While,
        String

    }

    class JavaCodeLine
    {
        public string id;
        public string code;
        public CodeType type;

        protected JavaCodeLine() { }
        public JavaCodeLine(CodeType type)
        {
            this.type = type;
            this.id = Guid.NewGuid().ToString();
        }
        public JavaCodeLine(CodeType type,string code)
        {
            this.type = type;
            this.code = code;
            this.id = Guid.NewGuid().ToString();
        }

        public void go()
        {
            Console.WriteLine(KeyWord.Import.ToString().ToLower());
            Console.ReadLine();
        }
       
        
    }
}
